package net.nohaven.proj.javeau;

import javax.swing.UIManager;

import net.nohaven.proj.javeau.crypt.net.InternetEntropyGatherer;
import net.nohaven.proj.javeau.crypt.prng.PRNG;
import net.nohaven.proj.javeau.ui.FileManagerCompanion;

public class Javeau {

	public static void main(String[] args) throws Exception {
		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

		new Thread() {
			public void run() {
				PRNG prng = PRNG.getInstance();

				byte[] rndSeed = InternetEntropyGatherer.getRandomMaterial();

				if (rndSeed.length > 0) {
					prng.reSeed(rndSeed);
					System.out.println("Seeding complete");
				}
			}
		}.start();

		new FileManagerCompanion();
	}
}
